package com.kjlink.internal.workreport.jira.vo;

/**
 * 描述:
 * jira 同步结果
 *
 * @author Vic.xu
 * @since 2025-01-20 19:12
 */
public class JiraSynchronousResult {

    /**
     * 新导入的数量
     */
    private int newImportCount;

    /**
     * 更新状态的数量
     */
    private int statusUpdatedCount;

    /**
     * 失败的数量
     */
    private int failedCount;

    /**
     * 无变化 的数量
     */
    private int noChangeCount;


    //帮我写一个toString 描述每个数量的值
    @Override
    public String toString() {
        return "新导入: " + newImportCount + "条; " +
                "状态变更: " + statusUpdatedCount + "条; " +
                "失败: " + failedCount + "条; " +
                "无变化: " + noChangeCount + "条; ";
    }

    public static void main(String[] args) {
        System.out.println(new JiraSynchronousResult());
    }

    //帮我生成每个值加1 的方法
    public void addNewImportCount() {
        this.newImportCount++;
    }

    public void addStatusUpdatedCount() {
        this.statusUpdatedCount++;
    }

    public void addFailedCount() {
        this.failedCount++;
    }

    public void addNoChangeCount() {
        this.noChangeCount++;

    }

    public int getNewImportCount() {
        return newImportCount++;
    }

}

